package com.lxj.permission.feign.fallback;

import com.lxj.permission.feign.UserFeign;
import com.lxj.utils.entity.Permission;
import com.lxj.utils.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 服务降级
 */
@Component
public class UserFallBackService implements UserFeign {

    @Override
    public List<Permission> getPermissionsByUserId(Integer id) {
        System.out.println("getNameByUsername: 调用服务失败");
        return null;
    }
}
